import axios from "@/axios"

export function getArticleDetail(articleId) {
    return axios.get(`/admin/article/${articleId}`)
}

export function publishArticle(data) {
    return axios.post("/admin/article", data)
}

export function getArticlePageList(data) {
    return axios.post("/admin/article/list", data)
}

export function deleteArticle(data) {
    return axios.delete("/admin/article", data)
}

export function updateArticle(data) {
    return axios.put("/admin/article", data)
}
